package com.danco.training.zaneuskaya.connection.dao;

import java.io.Serializable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import org.hibernate.HibernateException;
import org.hibernate.Session;

public interface GenericDao<T, PK extends Serializable> {

	void create(Session session, T object) throws HibernateException;

	T read(Session session, Integer PK) throws HibernateException;

	List<T> readAll(Session session) throws HibernateException;

	void update(Session session, T object) throws HibernateException;

	void delete(Session session, T object) throws HibernateException;

	

}
